package projects.ufam.nodes.messages;

import projects.defaultProject.nodes.nodeImplementations.LocalizableNode;
import sinalgo.nodes.Node;
import sinalgo.nodes.messages.Message;

public class LocalizationMessage extends Message {

	// private Position originPosition;
	private int hops;

	public LocalizationMessage(LocalizableNode origin, int hops) {
		this.sender = (Node) origin;
		this.hops = hops;
	}

	@Override
	public Message clone() {
		return new LocalizationMessage((LocalizableNode) this.sender, this.hops);
	}

	public int hops() {
		return this.hops;
	}

	@Override
	public int getMessageSize() {
		return 1;
	}

}